package com.basics.workorder.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.basics.framework.web.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 工单表
 * </p>
 *
 * @author WangWei
 * @since 2025-05-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("dm_work_order")
@ApiModel(value="DmWorkOrder对象", description="工单表")
public class DmWorkOrder extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "司机ID")
    private Long driverId;

    @ApiModelProperty(value = "车辆ID(多个逗号隔开)")
    private String carId;

    @ApiModelProperty(value = "工单类型")
    private String workOrderType;

    @ApiModelProperty(value = "业务板块")
    private Integer businessSegment;

    @ApiModelProperty(value = "工单状态(1进行中,2已完成,3验收中,4挂起中)")
    private Integer workOrderStatus;

    @ApiModelProperty(value = "是否查看")
    private Boolean viewFlag;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "当前移交人")
    private String transfer;

    @ApiModelProperty(value = "回收类型(1倒计时,2固定日期)")
    private Boolean backType;

    @ApiModelProperty(value = "倒计时格式(7-12-10  天-小时-分钟)")
    private String countdown;

    @ApiModelProperty(value = "回收时间")
    private LocalDateTime backTime;

    @ApiModelProperty(value = "是否回收")
    private Boolean backFlag;


}
